<?php

class GraphicsPanel extends WBPanel {
	private $_font ; 
	public function __construct($options = array()) { 
		parent::__construct($options);
	}
	
	public function initComponent() { 
		parent::initComponent();
		
		$this->_font = new WBFont("Arial", 16, RED);
	}
	
	public function __destruct() { 
		$this->_font->destroy();
	}
	
	public function repaint(WBGraphics $graphics) {
		$bounds = $this->getBounds();
		
		$graphics->rect(0, 0, $bounds['width'], $bounds['height'], WHITE, true);		
		$ret = $graphics->text(uniqid(), 100, 100, $this->_font);

	}
}

?>